define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope, Virtualgoods) {

	$scope.isHide = true;//默认隐藏
		//隐藏弹窗
		$scope.hide_apply = function(){
			$scope.isHide = true;
		}
		//显示弹窗
		$scope.show_apply = function(){
			$scope.isHide = false;
		}
	}

	controller.$inject = ['$scope', 'Virtualgoods'];
	
	return app.registerController("virtualgoodsctrl",controller);
});